import request from '@/utils/request'

// 垃圾桶列表
export function bucketList(query) {
  return request({
    url: '/system/bucket/list',
    method: 'get',
    params: query
  })
}
// 新增垃圾桶
export function addbucket(data) {
  return request({
    url: '/system/bucket',
    method: 'post',
    data: data
  })
}
// 修改垃圾桶
export function editbucket(data) {
  return request({
    url: '/system/bucket',
    method: 'put',
    data: data
  })
}
// 删除垃圾桶
export function delbucket(ids) {
  return request({
    url: '/system/bucket/' + ids,
    method: 'delete'
  })
}

// 停用垃圾桶
export function changebucket(id) {
  return request({
    url: '/system/bucket/stop/' + id,
    method: 'put'
  })
}
//获取垃圾站视频
export function getVideo(id) {
  return request({
    url: '/system/bucket/getVideoUrl/' + id,
    method: 'get'
  })
}
//获取垃圾桶详细信息
export function getBucket(id) {
  return request({
    url: '/system/bucket/' + id,
    method: 'get'
  })
}
//查询气体记录列表
export function getGasList(query) {
  return request({
    url: '/system/gasRecord/list',
    method: 'get',
    params: query
  })
}

